from pymilvus import connections, db
# Connect to Milvus
connections.connect("default", host="localhost", port="19530", user="root", password="Milvus")

# List all databases
databases = db.list_database()
# print("Databases:", databases)
# db.create_database("gary_db")
# List all databases
# databases = db.list_database()
print("Databases:", databases)
db.using_database("gary_db")